/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.inv.input.service;

import com.erp.order.supply.model.*;
import org.apache.fop.area.Page;
import org.redragon.framework.hibernate.DaoCRUDIF;

import com.erp.inv.input.dao.model.InvInputHead;
import com.erp.inv.input.dao.model.InvInputHeadCO;
import org.redragon.framework.hibernate.model.Pages;

import java.util.List;

public interface InvInputHeadService extends DaoCRUDIF<InvInputHead, InvInputHeadCO> {
    
    //修改审批状态
    public abstract void updateApproveStatus(String code, String approveStatus);

    InvInputHead getDataByCode(String inputHeadCode);

    String getNewHeadCodeByType(String inputType);
    SupplyMaterialVO getSupplyMaterialByCode(String supplyMaterialId);
    List<SupplyMaterialBeanVo> getSupplyMaterial(Pages pages, SupplyMaterialBeanVo supplyMaterialBeanVo);
    SupplyMaterialRVO getSupplyMaterialRByCode(String supplyMaterialId);
    List<SupplyMaterialDetailVO> getSupplyMaterialDetailByCode(String supply_material_id);
    SupplyMaterialDetailVO getMaterialDetailByCode(String id);
    SupplyMaterialDetailVO getSupplyMaterialDetailById(String id);
    void setSupplyMaterialDetailStatusByCode(SupplyMaterialDetail supplyMaterialDetail);
    Integer getSupplyMaterialStatusCount(String supplyMaterialId);

}
